<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>index.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="lib/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="lib/head.load.min.js"></script>
	<script type="text/javascript" src="cui/jsloader.js"></script>
	<script type="text/javascript" src="cui/jsregister.js"></script>
	<script type="text/javascript">
	JSLoader.load("cui.CUIConnector");
	JSLoader.load("XML");
	JSLoader.ready(function() {
		var connector = new CUI.cui.CUIConnector({
			tableId: "ab83729d-3439-4cda-bb05-ed0c1daafda2",
			pageSize: 1,
			url: "/dbmeta/cuiConnector.cui",
			dataType: "xml"
		});
		
		var xql = '<?xml version="1.0" encoding="UTF-8"?><records optype="insert"><record><field id="Id" type="2" iskey="-1" seqid="43"></field>'+
		'<field id="f1" type="1" iskey="0">asd</field>'+
		'<field id="f2" type="1" iskey="0">sss</field>'+
		'<field id="f3" type="2" iskey="0">5.00</field>'+
		'</record></records>';
		
		var updatexql = '<?xml version="1.0" encoding="UTF-8"?><records optype="update"><record><field id="Id" type="2" iskey="-1" seqid="43">100440</field>'+
		'<field id="f1" type="1" iskey="0">哦哦</field>'+
		'<field id="f2" type="1" iskey="0">111</field>'+
		'<field id="f3" type="2" iskey="0">10</field>'+
		'<where>'+
		'<field id="Id" type="2">100440</field>'+
		'<field id="f1" type="1">asd</field>'+
		'<field id="f2" type="1">sss</field>'+
		'<field id="f3" type="2">5</field>'+
		'</where>'+
		'</record></records>';
		
		var deletexql = '<?xml version="1.0" encoding="UTF-8"?><records optype="delete"><record>'+
		'<where>'+
		'<field id="Id" type="2">100439</field>'+
		'<field id="f1" type="1">asd</field>'+
		'<field id="f2" type="1">sss</field>'+
		'<field id="f3" type="2">5</field>'+
		'</where>'+
		'</record></records>';
		
		//var result = connector.execute(xql);
		//var result = connector.execute(updatexql);
		var result = connector.execute(deletexql);
		alert(result);
	});
	</script>
  </head>
  
  <body>
    This is my HTML page. <br>
  </body>
</html>
